package com.gzhryc.system.dto;

import java.util.List;

import com.gzhryc.common.xml.annotation.XmlElement;

@XmlElement("config")
public class MenuConfig {

	@XmlElement("menu")
	private List<Item> menus;

	public List<Item> getMenus() {
		return menus;
	}

	public void setMenus(List<Item> menus) {
		this.menus = menus;
	}

	public static class Item {

		private Integer type;
		private String name;
		private String link;
		private Integer priority;
		private String permission;

		@XmlElement("menu")
		private List<Item> children;

		public Integer getType() {
			return type;
		}

		public void setType(Integer type) {
			this.type = type;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public String getLink() {
			return link;
		}

		public void setLink(String link) {
			this.link = link;
		}

		public Integer getPriority() {
			return priority;
		}

		public void setPriority(Integer priority) {
			this.priority = priority;
		}

		public String getPermission() {
			return permission;
		}

		public void setPermission(String permission) {
			this.permission = permission;
		}

		public List<Item> getChildren() {
			return children;
		}

		public void setChildren(List<Item> children) {
			this.children = children;
		}
	}
}
